package com.kai.mapper.first;

import com.kai.entity.NumberInfo;

import java.util.List;
import java.util.Map;

/**
 * Created by kai on 17-4-19.
 */
public interface NumberInfoMapper {

    //保存
    int insert(NumberInfo info) ;

    //查询所有读主单号和分单号
    List<NumberInfo> findList(Map<String, Object> map);

    List<NumberInfo> getListBysingleNumber(Map<String, Object> map);

    NumberInfo findBillCount(Map<String, Object> map);

    List<NumberInfo> findNewList(Map<String, Object> map);

    List<NumberInfo> findListAll(Map<String, Object> map);

    int updateBynumber(NumberInfo info);

    //按分单号分组查询，查询所有分单号
    List<NumberInfo> findListBySubNumber(Map<String, Object> map);

    List<NumberInfo> findListCopyAll(Map<String, Object> map);
    //查询数量
    int getCount(Map<String, Object> map);

    int getCountCheck(Map<String, Object> map);

    //根据主单号分组
    List<NumberInfo> findAllBillNumberGoup(Map<String, Object> map);
}
